import Form from "./form/index.js"
import FormItem from "./form-item/index.js"

const components = [
    Form,
    FormItem,
]
const install = function (Vue) {
    components.forEach(component => {
        Vue.component(component.name, component)
    })
}

// 通过脚本引入安装
if (typeof window !== 'undefined' && window.Vue) {
    install(window.Vue)
}

export default {
    install,
}